package com.ruoyi.gen.controller;

import com.ruoyi.common.core.plus.web.controller.BasePlusController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.gen.config.TestConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 代码生成 操作处理
 *
 * @author ruoyi
 */
@RequestMapping("/code/test/config")
@RestController
@Slf4j
public class TestConfigController extends BasePlusController {
    @Autowired
    TestConfig testConfig;


    /**
     * 修改保存代码生成业务
     */
    @GetMapping
    public AjaxResult testConfig() {
        log.info(testConfig.toString());
        return AjaxResult.success(testConfig);
    }
}